The scheme adjusts the audio frame length without impairing audio quality according to the occupied level of audio playout buffer and changes the playout frame rate of video according to the occupied level of video playout buffer to achieve intra - media synchronization of audio stream and video stream 算法分别根据音频和视频播放缓冲区的占用水平,在不影响音频播放质量的情况下调整音频帧的长度,实现音频流媒体内同步;通过改变视频流的播放帧率达到视频流媒体内同步。